package Principal;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;

import GameOfLife.*;

public class TestVaisseauCircular {
	
	public static void main(String[] args) {
		
		Cell tmp1 = new Cell(new Position(0,3));
		Cell tmp2 = new Cell(new Position(1,3));
		Cell tmp3 = new Cell(new Position(0,2));
		Cell tmp4 = new Cell(new Position(3,2));
		ArrayList<Cell> tmp = new ArrayList<Cell>();
		tmp.add(tmp1);
		tmp.add(tmp2);
		tmp.add(tmp3);
		tmp.add(tmp4);
		Collections.sort(tmp);
		Game cg = new CircularGame(tmp, 5, 5);
		
		Cell tmp5 = new Cell(new Position(0,0));
		Cell tmp6 = new Cell(new Position(1,0));
		Cell tmp7 = new Cell(new Position(0,4));
		Cell tmp8 = new Cell(new Position(3,4));
		ArrayList<Cell> tmp9 = new ArrayList<Cell>();
		tmp9.add(tmp5);
		tmp9.add(tmp6);
		tmp9.add(tmp7);
		tmp9.add(tmp8);
		Collections.sort(tmp9);
		Position p = new Position();
		System.out.println(cg.estUneTranslation(tmp9, p));
		System.out.println(p);
		
	}

}
